﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;
using System.Reflection;
using System.Security;
using GKQC.DbHelper.DbModels;
using GKQC.DbHelper.Dao;
using GKQC.Machine;
using GKQC.DbHelper.ViewModels;

namespace GKQC
{
    /// <summary>
    /// 
    /// </summary>
    public partial class FormTemplate : Form
    {
        UserModel userMode = null;
        AllDbContext dbContext = null;

        public FormTemplate(UserModel userMode, AllDbContext dbContext)
        {
            InitializeComponent();
            this.userMode = userMode;
            this.dbContext = dbContext;
            InitialSampleSize();

            this.ElectricDataGridView.RowPostPaint += Common.DataGridViewSet.RowPostPaint;
        }

        private void tsmLCR_Click(object sender, EventArgs e)
        {
            //todo:把界面上的電壓传入LC仪器
            //FormLCR11022 f = new FormLCR11022(this,this.userMode, ortViewModel.ElectricViews,ortViewModel.SizeViews,16m);
            //f.Show();
        }

        void InitialSampleSize()
        {

        }
    }
}
